package com.sunfeng.chap4.test1;

import java.io.IOException;
import java.net.Socket;

/**
 * @description:
 * @author: 孙 峰
 * @time: 2020/11/9 14:35
 */
public class Client {
    public static void main(String[] args) {

        try {
            System.out.println("client 链接准备=" + System.currentTimeMillis());
            Socket socket = new Socket("localhost", 8088);
            System.out.println("client 结束链接=" + System.currentTimeMillis());
            socket.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
